const db = require("../lib/db");
function addarticle(){
    return new Promise((reslove,reject)=>{
    let sql = `insert into content (_id,title,content,author,authorId) values(${art_id},${art_title},${art_content},${art_author},${art_authorId})"`;
    db.querySql(sql).then(data=>{
            console.log(data)
            if(data.length == 0){
            resolve(500)
            }else{
             resolve(200)
            }
        })
    })
}
module.exports = addarticle;